﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Code.Manufacture
{
    public class ManufactureController
    {
        public List<string> GetListManufactureName()
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetListManufactureName();
        }

        public List<ManufactureInfo> GetListManufactureInfo()
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetListManufacture();
        }

        public ManufactureInfo GetManufactureInfoByID(int iID)
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetManufactureByID(iID);
        }

        public string GetManuFactureNameByID(int iID)
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetManufactureNameByID(iID);
        }
        public List<string> GetManuFactureNameByCatelogyID(int iCatelogyID)
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetListManufactureNameByCatelogyID(iCatelogyID);
        }

        public int GetManufactureIDByName(string sName)
        {
            ManufactureDataAccess mda = new ManufactureDataAccess();
            return mda.GetManufactureIdByName(sName);
        }
    }
}
